package com.stack.auto_parts.common.exception;

import com.stack.auto_parts.common.enums.CommonErrorEnum;
import lombok.Data;

/**
 * @Title: BusinessException
 * @Author WUYU_MIN
 * @Package com.stack.auto_parts.common.exception
 * @Date 2024/7/8 19:24
 * @description:
 */
@Data
public class BusinessException extends RuntimeException{

    protected Integer errCode;

    protected String errMsg;
    public BusinessException(){
        super();
    }
    public BusinessException(String errMsg){
        super(errMsg);
        this.errCode = CommonErrorEnum.BUSINESS_ERROR.getCode();
        this.errMsg = errMsg;
    }
}